<!--
  User: Kuttubek Aidaraliev
  Date: 23.04.2010
  Time: 15:51:24
-->

<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:rich="http://richfaces.org/rich">

            <h:panelGroup style="font-weight:bold; font-size:15px">
                <ui:insert name="label"/>
                <h:outputLabel styleClass="required" rendered="#{required and editField}">*</h:outputLabel>
            </h:panelGroup>
            
            <h:panelGroup>
                <ui:insert/>
                <h:outputText value="#{value}" rendered="#{not editField and myConverter eq null}"/>
                <h:outputText value="#{value}" rendered="#{not editField and myConverter ne null}" converter="#{myConverter}">
                </h:outputText>
                <rich:message for="#{idInput}" styleClass="errors">
                    <f:facet name="errorMarker">
                        <h:graphicImage value="/img/error.gif"/>
                    </f:facet>
                </rich:message>
            </h:panelGroup>

</ui:composition>